package v1

import (
	"k8sops/pkg/apis"
	"k8sops/pkg/router/v1/namespace"
	"k8sops/pkg/router/v1/node"

	"github.com/gin-gonic/gin"
)

func Register(r *gin.RouterGroup) {
	r.POST("/pods", apis.DealWithPods)

	nodeGroup := r.Group("/node")
	node.Register(nodeGroup)

	namespaceGroup := r.Group("/namespace")
	namespace.Register(namespaceGroup)
}
